<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{layout :: css(~{::title},~{::link})}">
    <link href="/css/shuru.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
    <title>商品管理界面</title>
</head>
<body>
<div th:insert="~{layout::sidebar(activeURI='two')}"></div>
<div class="right">
    <div th:insert="~{GoodsTop::top(activeURI='one2')}"></div>
    <div class="hhhh3">
        <form method="post" action="/updateitem">
        <label>ItemId:</label><br>
        <input class="shuru"  name="itemid" th:value="${item.itemid}"/>
        <br>
        <label>所属产品类:</label><br>
        <input class="shuru" name="productid" th:value="${item.productid}"/>
        <br>
        <label>售价:</label><br>
        <input class="shuru" name="listprice" th:value="${item.listprice}"/>
        <br>
        <label>成本价:</label><br>
        <input class="shuru" name="unitcost" th:value="${item.unitcost}"/>
        <br>
        <input type="hidden" class="shuru" name="supplier" th:value="${item.supplier}"/>
        <input type="hidden" class="shuru" name="status" th:value="${item.status}"/>
        <label>描述:</label><br>
        <input class="shuru" name="attr1" th:value="${item.attr1}"/>
        <br>
            <label>库存：</label><br>
            <input class="shuru" name="qty" th:value="${inventory.quantity}"/>
            <br>
            <input type="submit"  class="button button1" value="保存">
        </form>
    </div>
</div>
</body>
</html>